package com.itheima.d2_homework.timu2;

public class Circle  implements ShapePara {
    static double PI= 3.14;
    public double radius;

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public static double getPI() {
        return PI;
    }

    public static void setPI(double PI) {
        Circle.PI = PI;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public int getArea() {
       return (int) (PI*radius*radius);
    }

    @Override
    public int getCircumference() {
        return (int) (PI*2*radius);
    }
}
